package com.bank.service;

import com.bank.entity.User;
import com.bank.repository.UserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService extends EntityService<User, UserRepo> {

    @Autowired
    protected UserService(UserRepo repo) {
        super(repo);
    }

    public User findUserByUserName(String username) {
        return repo.findUserByUserName(username);
    }
}
